<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>prencar: D:/Workspace/Arduino/prencar/LiftCube.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="prencar.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">prencar
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_lift_cube_8h.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">D:/Workspace/Arduino/prencar/LiftCube.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_lift_cube_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef LiftCube_h</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define LiftCube_h</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;Arduino.h&quot;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="_communication_8h.html">Communication.h</a>&quot;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;Servo.h&gt;</span>
<a name="l00007"></a>00007 
<a name="l00008"></a><a class="code" href="class_lift_cube.html">00008</a> <span class="keyword">class </span><a class="code" href="class_lift_cube.html">LiftCube</a>
<a name="l00009"></a>00009 {
<a name="l00010"></a>00010 <span class="keyword">private</span>:
<a name="l00011"></a>00011   <a class="code" href="class_lift_cube.html#a5bf2f6939ce4578fbf54d9214dd91fb3">LiftCube</a>();
<a name="l00012"></a><a class="code" href="class_lift_cube.html#a93b949abb4659fd6801c8b5c53d17f49">00012</a>   <span class="keyword">static</span> <a class="code" href="class_lift_cube.html">LiftCube</a> <a class="code" href="class_lift_cube.html#a93b949abb4659fd6801c8b5c53d17f49" title="Static reference to the singleton object.">_instance</a>;
<a name="l00013"></a><a class="code" href="class_lift_cube.html#a4cec38045e6a075620851c7c848c0584">00013</a>   <span class="keyword">static</span> <span class="keywordtype">boolean</span> <a class="code" href="class_lift_cube.html#a4cec38045e6a075620851c7c848c0584">_instanceCreated</a>;
<a name="l00014"></a>00014   <span class="keywordtype">void</span> <a class="code" href="class_lift_cube.html#a9da2ca841910ad988f5b7e0313714968">begin</a>();
<a name="l00015"></a><a class="code" href="class_lift_cube.html#a9626cc456176b07611aeefedf6fd8b48">00015</a>   byte <a class="code" href="class_lift_cube.html#a9626cc456176b07611aeefedf6fd8b48" title="Last position of the servo to which it was set (pwm value 0-255)">_currentPosition</a>; 
<a name="l00016"></a><a class="code" href="class_lift_cube.html#aeb1974f95c87f79df20161f44dd6c7bc">00016</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="class_lift_cube.html#aeb1974f95c87f79df20161f44dd6c7bc" title="Saves the timestamp when the method liftCube is called to know when it&#39;s time to lift up again...">_liftDownStartTimestamp</a>; 
<a name="l00017"></a>00017 
<a name="l00018"></a><a class="code" href="class_lift_cube.html#afb428580284ed0c38d6cf3745904d060">00018</a>   <a class="code" href="class_communication.html">Communication</a>* <a class="code" href="class_lift_cube.html#afb428580284ed0c38d6cf3745904d060" title="The reference to the serial communication class.">_com</a>; 
<a name="l00019"></a><a class="code" href="class_lift_cube.html#aea8e72092e201140adecaf04a98706d5">00019</a>   <a class="code" href="class_configuration.html">Configuration</a>* <a class="code" href="class_lift_cube.html#aea8e72092e201140adecaf04a98706d5" title="The reference to the configuration class.">_conf</a>; 
<a name="l00020"></a>00020 
<a name="l00021"></a><a class="code" href="class_lift_cube.html#acfefe1c0364c233a5bf5e8b52bcab385">00021</a>   <span class="keywordtype">boolean</span> <a class="code" href="class_lift_cube.html#acfefe1c0364c233a5bf5e8b52bcab385" title="Will be set to true as soon as the cube lift process starts and will therefore prevent a second call ...">_liftingStarted</a>; 
<a name="l00022"></a>00022 
<a name="l00023"></a><a class="code" href="class_lift_cube.html#ac1cad13e4bcc8f961b5ef642a685455b">00023</a>   Servo <a class="code" href="class_lift_cube.html#ac1cad13e4bcc8f961b5ef642a685455b">_hoistServo</a>;
<a name="l00024"></a>00024 <span class="keyword">public</span>:
<a name="l00025"></a>00025   <span class="keyword">static</span> <a class="code" href="class_lift_cube.html">LiftCube</a>* <a class="code" href="class_lift_cube.html#a7482caae31a755370d072f6ec85ad598">getInstance</a>();
<a name="l00026"></a>00026 
<a name="l00027"></a><a class="code" href="class_lift_cube.html#a7a13f30623f88cfa1de6437665854990">00027</a>   <span class="keywordtype">boolean</span> <a class="code" href="class_lift_cube.html#a7a13f30623f88cfa1de6437665854990" title="Will be set to true as soon as the cube is lifted. If set to true the cube will not be lifted again a...">cubeLifted</a>; 
<a name="l00028"></a>00028 
<a name="l00029"></a>00029   <span class="keywordtype">void</span> <a class="code" href="class_lift_cube.html#ab5d1090dfcf43a319666d905b374d4a6">doJob</a>();
<a name="l00030"></a>00030   <span class="keywordtype">void</span> <a class="code" href="class_lift_cube.html#a517b1b3c4dc314d228ba4dc79d17de64">liftUp</a>();
<a name="l00031"></a>00031   <span class="keywordtype">void</span> <a class="code" href="class_lift_cube.html#a652d399235cafb5179a2d6c65df11112">liftDown</a>();
<a name="l00032"></a>00032   <span class="keywordtype">void</span> <a class="code" href="class_lift_cube.html#a11c5c99c275d5a4acfc778852976f6cd">liftCube</a>();
<a name="l00033"></a>00033   <span class="keywordtype">void</span> <a class="code" href="class_lift_cube.html#a6b6c013383282736029056541de33844">setHoistPosition</a>(byte pos);
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 };
<a name="l00036"></a>00036 <span class="preprocessor">#endif</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_lift_cube_8h.html">LiftCube.h</a>      </li>

    <li class="footer">Generated on Fri May 4 2012 09:56:52 for prencar by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
